package com.xvyy.tingshu.search.rpc;

import com.xvyy.tingshu.common.result.Result;
import com.xvyy.tingshu.search.service.ItemService;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: SearchRpcController
 * Package: com.xvyy.tingshu.search.rpc
 *
 * @Description:
 * @Author: xvyy
 * @Create: 2025/2/15 - 11:45
 * @Version: v1.0
 */
@RestController
@RequestMapping("/api/inner/search")
public class SearchRpcController {

    @Autowired
    private ItemService itemService;

    @Operation(summary = "排行榜提前预热")
    @GetMapping("/preHitRank")
    public Result preHitRank() {
        itemService.preHitRank();
        return Result.ok();
    }

}
